﻿namespace EyeOpen.Validation
{
    using System.Collections.Generic;

    /// <summary>
    /// Contains the result of a validation.
    /// </summary>
    public class ValidationResult
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ValidationResult"/> class.
        /// </summary>
        public ValidationResult() 
        {
            ValidationMessages = new List<string>();
        }

        /// <summary>
        /// Gets or sets the name of the property.
        /// </summary>
        /// <value>The name of the property.</value>
        public string PropertyName
        {
            get;
            set;
        }

        /// <summary>
        /// Gets the validation message.
        /// </summary>
        /// <value>The validation message.</value>
        public IList<string> ValidationMessages
        {
            get;
            private set;
        }
    }
}